package com.yidu.best.systemManagement.userControl.domain;

public class UserVo {
	/**
	 * 用户ID
	 */
	private String userId;
	/**
	 * 用户名
	 */
    private String userName;
    /**
	 * 用户名
	 */
    private String password;
  
    /**
	 * 用戶头像URL
	 */
    private String userPic;
    /**
	 * 性别
	 */
    private String gender;
    /**
	 * 是否可用
	 */
    private String useable;
   
    /**
	 * 电话号码
	 */
    private String phone;
    /**
	 * 描述
	 */
    private String description;
    /**
              * 页码
     */
    private Integer page;
    /**
               * 每页显示数量
     */
    private Integer limit;
    
    public UserVo() {}

	public UserVo(String userId, String userName, String password, String userPic, String gender, String useable,
			String phone, String description, Integer page, Integer limit) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.password = password;
		this.userPic = userPic;
		this.gender = gender;
		this.useable = useable;
		this.phone = phone;
		this.description = description;
		this.page = page;
		this.limit = limit;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUserPic() {
		return userPic;
	}

	public void setUserPic(String userPic) {
		this.userPic = userPic;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getUseable() {
		return useable;
	}

	public void setUseable(String useable) {
		this.useable = useable;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	@Override
	public String toString() {
		return "UserVo [userId=" + userId + ", userName=" + userName + ", password=" + password + ", userPic=" + userPic
				+ ", gender=" + gender + ", useable=" + useable + ", phone=" + phone + ", description=" + description
				+ ", page=" + page + ", limit=" + limit + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((description == null) ? 0 : description.hashCode());
		result = prime * result + ((gender == null) ? 0 : gender.hashCode());
		result = prime * result + ((limit == null) ? 0 : limit.hashCode());
		result = prime * result + ((page == null) ? 0 : page.hashCode());
		result = prime * result + ((password == null) ? 0 : password.hashCode());
		result = prime * result + ((phone == null) ? 0 : phone.hashCode());
		result = prime * result + ((useable == null) ? 0 : useable.hashCode());
		result = prime * result + ((userId == null) ? 0 : userId.hashCode());
		result = prime * result + ((userName == null) ? 0 : userName.hashCode());
		result = prime * result + ((userPic == null) ? 0 : userPic.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		UserVo other = (UserVo) obj;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (gender == null) {
			if (other.gender != null)
				return false;
		} else if (!gender.equals(other.gender))
			return false;
		if (limit == null) {
			if (other.limit != null)
				return false;
		} else if (!limit.equals(other.limit))
			return false;
		if (page == null) {
			if (other.page != null)
				return false;
		} else if (!page.equals(other.page))
			return false;
		if (password == null) {
			if (other.password != null)
				return false;
		} else if (!password.equals(other.password))
			return false;
		if (phone == null) {
			if (other.phone != null)
				return false;
		} else if (!phone.equals(other.phone))
			return false;
		if (useable == null) {
			if (other.useable != null)
				return false;
		} else if (!useable.equals(other.useable))
			return false;
		if (userId == null) {
			if (other.userId != null)
				return false;
		} else if (!userId.equals(other.userId))
			return false;
		if (userName == null) {
			if (other.userName != null)
				return false;
		} else if (!userName.equals(other.userName))
			return false;
		if (userPic == null) {
			if (other.userPic != null)
				return false;
		} else if (!userPic.equals(other.userPic))
			return false;
		return true;
	}

	
    
}
